package com.zhuozhou.jdyc.bean.base;

import androidx.annotation.DrawableRes;
import androidx.annotation.StyleRes;
import androidx.databinding.BaseObservable;

import com.zhuozhou.jdyc.R;

/**
 * Create by CherishTang on 2020/3/25 0025
 * describe:toolbar配置
 */
public class ToolbarConfig extends BaseObservable {
    private String title;
    private String titleHint = "请输入";
    private boolean isEditTitle = false;
    private @DrawableRes int backIconRes = R.mipmap.icon_fh_white;
    private boolean defaultTheme = true;//toolbar的menu主题,默认主题为黑色
    private int textColor = R.color.white;//标题字体颜色
    private int bgColor = R.color.themeColor;//标题背景色
    private boolean isShowBackButton = true;//是否显示返回按钮
    private @StyleRes int styleTheme = R.style.ToolBarStyle_white;
    public ToolbarConfig() {
    }

    public ToolbarConfig(String title, int backIconRes, boolean defaultTheme, int textColor, int bgColor) {
        this.title = title;
        this.backIconRes = backIconRes;
        this.defaultTheme = defaultTheme;
        this.textColor = textColor;
        this.bgColor = bgColor;
    }

    public ToolbarConfig(String title, String titleHint, boolean isEditTitle, int backIconRes, boolean defaultTheme, int textColor, int bgColor, boolean isShowBackButton, int viewStubLayout) {
        this.title = title;
        this.titleHint = titleHint;
        this.isEditTitle = isEditTitle;
        this.backIconRes = backIconRes;
        this.defaultTheme = defaultTheme;
        this.textColor = textColor;
        this.bgColor = bgColor;
        this.isShowBackButton = isShowBackButton;
    }

    public int getStyleTheme() {
        return styleTheme;
    }

    public void setStyleTheme(int styleTheme) {
        this.styleTheme = styleTheme;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitleHint() {
        return titleHint;
    }

    public void setTitleHint(String titleHint) {
        this.titleHint = titleHint;
    }

    public boolean isEditTitle() {
        return isEditTitle;
    }

    public void setEditTitle(boolean editTitle) {
        isEditTitle = editTitle;
    }

    public int getBackIconRes() {
        return backIconRes;
    }

    public void setBackIconRes(int backIconRes) {
        this.backIconRes = backIconRes;
    }

    public boolean isDefaultTheme() {
        return defaultTheme;
    }

    public void setDefaultTheme(boolean defaultTheme) {
        this.defaultTheme = defaultTheme;
    }

    public int getTextColor() {
        return textColor;
    }

    public void setTextColor(int textColor) {
        this.textColor = textColor;
    }

    public int getBgColor() {
        return bgColor;
    }

    public void setBgColor(int bgColor) {
        this.bgColor = bgColor;
    }

    public boolean isShowBackButton() {
        return isShowBackButton;
    }

    public void setShowBackButton(boolean showBackButton) {
        isShowBackButton = showBackButton;
    }
}
